﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Movie.web
{
    public partial class Detail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session["MovieId"] = Request["MovieId"];

                string movieID = Session["MovieId"].ToString();
                DataList1.DataSource = BLL.MovieBLL.GetDetail(movieID);
                DataList1.DataBind();
            }

        }

        protected void btnBuy_Click(object sender, EventArgs e)
        {
            string movieID = Session["MovieId"].ToString();
            Response.Redirect("~/CinemaList.aspx?MovieId="+movieID);
        }
    }
}